package test.login.login2;


import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Usertest {
    public static void main(String[] args) throws SQLException {
         JdbcUtil.getCon ( );
        PreparedStatement ps = JdbcUtil.getPs ("select *from hao");
        ResultSet re = JdbcUtil.getRe ( );
        while(re.next ()){
            String zhanghao = re.getString ("zhanghao");
            System.out.println (zhanghao );
        }
        JdbcUtil.closeall ();

    }
}
